<template>
  <div class="container">
    <div class="box" @click="to('/elderDistribution')">老年人区域分布与养老方式划分情况</div>
    <div class="box" @click="to('/pension')">养老机构类型与区域分布情况</div>
    <div class="box" @click="to('/subsidy')">养老补贴区域分布情况</div>
    <div class="box" @click="to('/personnel')">从业人员发展趋势情况</div>
    <div class="box" @click="to('/fund')">项目规模和类型分布情况</div>
    <div class="box" @click="to('/expert')">专业人才总体分布情况</div>
    <div class="box" @click="to('/orgBed')">机构轮候床位使用率总体情况</div>
    <div class="box" @click="to('/serviceFacility')">社区居家养老服务项目设施总体情况</div>
    <div class="box" @click="to('/bedDistribution')">养老服务床位区域分布情况</div>
    <div class="box" @click="to('/startRating')">星级评定总体情况</div>
    <div class="box" @click="to('/timeBank')">时间银行积分总体情况</div>
  </div>
</template>

<script setup>
import {ref,reactive} from 'vue'
import router from '@/router/index'

const to = val =>{
    router.push(val)
}
</script>
<style lang="less" scoped>
.container {
  overflow: auto;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    // background-color: #fff;
    height: 100vh;
    flex-wrap: wrap;
    .box {
      font-size: 32px;
        border: 1px solid #fff;
        padding: 10px;
        background-color: #c8c8c8;
        text-align: center;
        flex: 1;
        color: #fff;
        cursor: pointer;
        &:nth-child(7),
        &:nth-child(8),
        &:nth-child(9),
        &:nth-child(10),
        &:nth-child(11)
        {
      background-color: pink;
    }
    }
   
}
</style>